<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ChildClass extends Model
{
    protected $table='childclass';

    public function parentClass(){
        return $this->belongsTo('App\Models\Classes', 'pa_parent','id');
    }

}
